package com.xxl.services;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

/**
 * @author xxl
 */
public interface StudentService {
    /**
     * 添加或修改学生数据
     * @param studentId
     * @param studentName
     * @param classesName
     * @throws IOException
     */
    void addOrUpdate(String studentId, String studentName, String classesName) throws IOException;

    /**
     * 根据studentId删除学生数据
     * @param studentId
     * @return boolean
     */
    boolean delete(String studentId);

    /**
     * 给list添加所有学生数据
     * @param list
     * @throws SQLException
     */
    void listAddStudent(List list) throws SQLException;
}
